﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace z.m.db.Metadata
{
	public class MOccasion
	{
		[DataType(DataType.Date)]
		[DisplayFormat(DataFormatString="{0:yyyy-MM-dd}",ApplyFormatInEditMode=true)]
		[Display(Name = "Begin Date")]
		public System.DateTime Begin_Date { get; set; }
		[DataType(DataType.Date)]
		[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
		[Display(Name = "Begin Order Date")]
		public System.DateTime Begin_Order_Date { get; set; }

		[Display(Name = "Detail")]
		public string Detail { get; set; }
		[DataType(DataType.Date)]
		[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
		[Display(Name = "End Date")]
		public System.DateTime End_Date { get; set; }
		[DataType(DataType.Date)]
		[Display(Name = "End Order Date")]
		[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
		public System.DateTime End_Order_Date { get; set; }

		//[Display(Name = "Occasion Detail")]
		//public virtual ICollection<Event_Detail> Event_Detail { get; set; }

		[Display(Name = "ID")]
		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public int ID { get; set; }
		
	}
}